package com.ruoyi.tactics.algorithm;

import com.ruoyi.tactics.ZodiacResult;

/**
 * 头
 */
public class HeadAlgorithm extends AbstractAlgorithm {
    @Override
    public Boolean isWin(ZodiacResult zodiacResult, String... code) {
        Integer tail = zodiacResult.getTm() / 10;
        return tail.equals(Integer.parseInt(code[0]));
    }
}
